package com.training.dao.impl.liuyong;

import java.util.List;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.training.dao.liuyong.ILogDao;
import com.training.pojo.chengshu.ULog;

public class LogDaoImpl extends HibernateDaoSupport implements ILogDao {

	public void addLog() {

	}

	@SuppressWarnings("unchecked")
	public List<ULog> getAllLogs() {
		HibernateTemplate htmp = this.getHibernateTemplate();
		String hql = "FROM ULog AS ulog";
		List<ULog> list = (List<ULog>)htmp.find(hql);
		return list;
	}
}
